package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.yh.shop.product.dao.TasteDao;
import cn.yh.shop.product.model.Taste;
import cn.yh.shop.product.service.ITasteService;
@Service
public class TasteServiceImpl implements ITasteService {
	/**
	 * 口味数据访问对象
	 */
	@Autowired
	private TasteDao tastedao;
	@Override
	public List<Taste> getTastes() {
		return tastedao.selectTastes();
	}

	@Override
	public Taste getTasteById(HashMap map) {
		return tastedao.selectTasteById(map);
	}

	@Override
	public List<Taste> getTasteListById(HashMap map) {
		return tastedao.selectTastelistById(map);
	}

}
